/*Main styles*/

.elegant-letter {
    writing-mode: vertical-lr;
    text-orientation: upright;
    display: none; /* Hidden by default */
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        display: block;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*Going to save a ton of time*/

:root {
    --primary-color: #d4af37; /* Gold */
    --secondary-color: #f5f5f5; /* Off-white */
    --accent-color: #ffffff; /* Pure white */
    --text-color: #2c2c2c; /* Dark gray */
    --gold-light: #e8c96f; /* Light gold */
    --font-family-base: "Arial", sans-serif;
    --font-family-headings: "Helvetica", sans-serif;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--text-color);
    transition: margin-left 0.4s ease;
    position: relative;
    background: var(--accent-color);
}

/*Adding the margin for the white side bar*/
body.sidebar-visible {
    margin-left: 100px;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.content-section {
    padding: 4rem 2rem;
}

/*Link to header*/

.main-header {
    width: 100%;
    border-bottom: 1px solid var(--primary-color);
    transition: margin-left 0.4s ease;
    background: var(--accent-color);
}

/*Pushing header aside but looks not that good but idk how to fix it to look better*/
body.sidebar-visible .main-header {
    margin-left: -100px;
}

.white-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--primary-color);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}

.white-sidebar.visible {
    opacity: 1;
    visibility: visible;
}

/*Logo fonts and settings*/

#main-logo {
    font-family: "Playfair Display", serif;
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    margin: 0 auto;
    width: fit-content;
    letter-spacing: 0em;
    transition:
        font-size 0.4s ease,
        letter-spacing 0.4s ease,
        top 0.4s ease,
        left 0.4s ease,
        transform 0.4s ease;
}

/*Scroll mode setting*/

.white-sidebar.visible #main-logo {
    position: static;
    font-size: 2rem;
    letter-spacing: 0.5em;
    writing-mode: vertical-lr;
    text-orientation: upright;
    transform: none;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    font-family: var(--font-family-headings);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.primary-nav {
    justify-content: center;
    padding: 1rem 0;
    margin-left: 150px;
    margin-right: px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

/*Hero section now slider is useless for this so*/

.hero-section {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    background:
        linear-gradient(rgba(245, 245, 245, 0.7), rgba(255, 255, 255, 0.7)),
        url("Pictures/Fall.jpg");
    background-size: cover;
    background-position: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: var(--font-family-headings);
    animation: fadeInUp 1s ease-out;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    margin-top: 1.5rem;
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: backwards; /* Ensures it starts hidden before animation */
}

.cta-button:hover {
    background-color: var(--gold-light);
    transform: translateY(-3px);
}

/*Promo sec*/

.promotion {
    background:
        linear-gradient(rgba(212, 175, 55, 0.8), rgba(212, 175, 55, 0.8)),
        url("Pictures/Promo.jpg");
    background-position: center;
    text-align: center;
    color: white;
}

.promotion .promo-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/*Featured things*/

.collection-grid {
    display: grid;
    gap: 1.5rem;
}

.collection-item,
.collection-item-women,
.collection-item-men,
.collection-item-her {
    height: 500px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    border: 1px solid var(--primary-color);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.collection-item:hover,
.collection-item-women:hover,
.collection-item-men:hover,
.collection-item-her:hover {
    transform: scale(1.03);
}

.collection-item::before,
.collection-item-women::before,
.collection-item-men::before,
.collection-item-her::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.collection-item:hover::before,
.collection-item-women:hover::before,
.collection-item-men:hover::before,
.collection-item-her:hover::before {
    opacity: 1;
}

.collection-item a {
    position: relative;
    z-index: 2;
}

.collection-item-women {
    background-image: url("Pictures/Main1.jpg");
}

.collection-item-men {
    background-image: url("Pictures/Main2.jpg");
}

.collection-item-her {
    background-image: url("Pictures/Main3.jpg");
}

.collection-caption {
    color: white;
    transition: transform 0.4s ease;
}

.collection-caption h2 {
    font-size: 1.8rem;
    font-family: var(--font-family-headings);
}

.collection-item-women:hover .collection-caption,
.collection-item-men:hover .collection-caption,
.collection-item-her:hover .collection-caption {
    transform: translateY(-10px);
}

/*Promo and news letter*/

.promo-banner {
    background: var(--secondary-color);
    text-align: center;
    border-top: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.newsletter {
    text-align: center;
    padding: 4rem 2rem;
}

.newsletter-form {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.newsletter-form input {
    width: 300px;
    padding: 0.75rem;
    border: 1px solid var(--primary-color);
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
    animation: fadeInUp 1s ease-in-out 1s forwards;
    opacity: 0;
}

.newsletter-form button:hover {
    background-color: var(--gold-light);
}

/*Footer*/

.main-footer {
    background: var(--secondary-color);
    padding: 3rem 2rem;
    border-top: 1px solid var(--primary-color);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns on mobile */
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-family: var(--font-family-headings);
    animation: fadeInUp 1s ease-in-out 0.5s forwards;
    opacity: 0;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #888;
}

/*Desktop support for grids*/

.primary-nav {
    display: flex;
}

.collection-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on larger screens */
}

.promo-grid {
    grid-template-columns: repeat(2, 1fr);
}

.footer-links {
    grid-template-columns: repeat(4, 1fr);
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Helper class for scroll animations - requires JS to toggle 'visible' class */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease-out,
        transform 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Helper class for scroll animations - requires JS to toggle 'visible' class */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease-out,
        transform 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Helper class for scroll animations - requires JS to toggle 'visible' class */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease-out,
        transform 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
